package com.yc.snack.biz.impl;

import com.yc.snack.biz.IAdminInfoBiz;
import com.yc.snack.dao.IAdminInfoDao;
import com.yc.snack.dao.impl.AdminInfoDaoImpl;
import com.yc.snack.entity.AdminInfo;
import com.yc.snack.util.StringUtil;

/**
 * @Auther: HuYang
 * @Date: 2022/11/6 - 11 - 06 - 16:50
 * @Description: com.yc.snack.biz.impl
 * @version: 1.0
 */
public class AdminInfoBizImpl implements IAdminInfoBiz {
    @Override
    public AdminInfo login(AdminInfo af) {
        if (StringUtil.checkNull(af.getAname(),af.getPwd())){
            return null;
        }
        IAdminInfoDao adminInfoDao = new AdminInfoDaoImpl();
        return adminInfoDao.login(af);
    }
}
